/**
 * Created by Administrator on 2016/5/2.
 */
(function () {
    angular.module('scope2',[]).controller('deck', ['$scope', function ($scope) {
        $scope.cards = [{
            name: '马尔考洛克'
        },{
            name: '霍格'
        },{
            name: '图哈特'
        }];
    }]).directive('cardName', function () {
        return {
            restrict: 'E',
            templateUrl: 'scope2-card-name.html',
            scope: {
                name: "@"
            }
        };
    }).directive('cardName2', function () {
        return {
            restrict: 'E',
            templateUrl: 'scope2-card-name.html',
            scope: {
                name: "="
            }
        };
    });
})();
